<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableArts extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('Arts', function (Blueprint $table) {
            $table->increments('aid');
            $table->integer('cid');
            $table->integer('uid');
            $table->string('title',50);
            $table->string('intro',1000);
            $table->string('author',50);
            $table->string('content',2000);
            $table->string('pic',50);
            $table->string('http',200);
            $table->integer('pubtime');
            $table->integer('status');
            $table->integer('comms');
            $table->integer('score');
            $table->integer('like');
            $table->integer('share');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('Arts');
    }
}
